<template>
    <div class="user-node">
        <!-- 顶部输入连接点 -->
        <Handle  :position="Position.Left" :id="`${id}-top`" class="handle handle-top" />
        <VueFlowGroupCard :data="data">
            <div class="user-content">
                <div class="user-title">接收内容：</div>
                <div class="user-text">{{ data.content || '等待输入...' }}</div>
            </div>
        </VueFlowGroupCard>
    </div>
</template>

<script setup lang="ts">
import { Handle, Position, useNodeConnections, useNodesData } from '@vue-flow/core'


const props = defineProps({
    id: { type: String, required: true },
    data: { type: Object, default: () => ({}) }
})
</script>
